<style>
<!--
body {
    font-family: Arial;
    font-size: 12px;
    margin: 0;
    text-align: center;
}
-->
</style>

<div style="width:10cm;overflow:hidden;">
<{foreach from=$resultsAll item=results name=resultsAll}>
	<div style="height:1.8cm;overflow:hidden;width:20cm;">
	<{foreach from=$results item=product name=results key=k}>
		<{if isset($product.ws_code) && $product.ws_code!='' }>
			<div style="width:3.2cm;height:1.8cm; text-algin:center;overflow:hidden;float:left;margin:0 0.1cm ;">
				<div style="height:0.2cm"></div>
				<div style="width:100%;text-align:center;overflow:hidden;height:17px; padding-top:8px;"><{$product.ws_code}></div>
				<div style="width:100%;text-align:center;overflow:hidden;height:17px; "><{$product.customer_id}>-<{$product.product_sku}></div>
			</div>
		 <{else}>
			<div style="width:3.2cm;height:1.8cm; text-algin:center;overflow:hidden;float:left; margin:0 0.1cm ;">
				<div style="height:0.2cm"></div>
				<div style="height:1.0cm;overflow:hidden;width:100%;text-align:center">
				<img src="/product/product/barcode?code=<{$product.customer_id}><{$product.product_sku}>" style="width:3.1cm;display:block;margin:0cm auto 0; "/>
				</div>
				<div style="width:100%;text-align:center;overflow:hidden;height:17px; "><{$product.customer_id}>-<{$product.product_sku}></div>
			</div>
		<{/if}>	
			
	<{/foreach}>
	</div>
	<div class="contentBottom" style="page-break-after:always; clear:both;height:0.1cm;overflow:hidden;">&nbsp;</div>
<{/foreach}>
</div>

